
package com.yzkj.cpjxc.business.framework.common;

public class BusinessResult {

	/**
	 * 默认返回值是正常的
	 */
	private String code = "0";

	/**
	 * 提示信息
	 */
	private String msg="操作成功";

	public BusinessResult() {}

	public BusinessResult(String msg) {
		this.msg = msg;
	}
	
	public BusinessResult(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public boolean isSuccess() {
		if (Constants.STATUS_NORMAL.equals(code)) {
			return true;
		}
		return false;
	}

}
